package com.ruoyi.system.weather_forecast.service;

import com.ruoyi.system.weather_forecast.domain.WeatherForecast;

import java.util.List;

/**
 * 天气预报Service接口
 *
 * @author ruoyi
 * @date 2024-06-21
 */
public interface IWeatherForecastService
{
    /**
     * 查询天气预报
     *
     * @param id 天气预报主键
     * @return 天气预报
     */
    public WeatherForecast selectWeatherForecastById(String id);

    /**
     * 查询天气预报列表
     *
     * @param weatherForecast 天气预报
     * @return 天气预报集合
     */
    public List<WeatherForecast> selectWeatherForecastList(WeatherForecast weatherForecast);

    /**
     * 新增天气预报
     *
     * @param weatherForecast 天气预报
     * @return 结果
     */
    public int insertWeatherForecast(WeatherForecast weatherForecast);

    /**
     * 修改天气预报
     *
     * @param weatherForecast 天气预报
     * @return 结果
     */
    public int updateWeatherForecast(WeatherForecast weatherForecast);

    /**
     * 批量删除天气预报
     *
     * @param ids 需要删除的天气预报主键集合
     * @return 结果
     */
    public int deleteWeatherForecastByIds(String[] ids);

    /**
     * 删除天气预报信息
     *
     * @param id 天气预报主键
     * @return 结果
     */
    public int deleteWeatherForecastById(String id);

    public int insertOrUpdateWeatherForecast(WeatherForecast weatherForecast);

    /**
     * 修改天气预报
     *
     * @param
     * @return 结果
     */
    public int deleteWeatherForecastByDateText(String dateText);

    public int creates(List<WeatherForecast> weatherForecasts);
}
